import { request } from '@/utils/request'
import type { Category, ICategory } from './types/layout'

export const getCategoryAPI = () => request<ICategory[]>('/home/category/head', 'GET')

//获取二级分类
export const getsenecdCategoryAPI = (id: string) => request<Category>('/category', 'GET', { id })
